package com.kingcore.pda.project.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.kingcore.pda.PdaContext;
import com.kingcore.pda.base.controller.PdaAction;
import com.kingcore.pda.core.util.BeanConverter;
import com.kingcore.pda.project.bean.ProjectBean;

public class ProjectAction  extends PdaAction {

	@Override
	public ActionForward executeAction(ActionMapping arg0, ActionForm arg1, HttpServletRequest arg2, HttpServletResponse arg3) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
	/* ------------------------------- for dwr begin ---------------------------------- */
	/**
	 * 
	 * <p>删除表文件。 dwr调用</p>
	 * @author Zeven on Feb 4, 2010
	 * @param tblEn
	 * @return
	 */
	public Map<String,String> getProjectInfo(String prj_code ){
		 
		System.out.println("prj_code =========== " + prj_code);
		if (prj_code==null) {
			return null;
		}
		ProjectBean prjBean = PdaContext.getProjectMap().get(prj_code);
		
		return BeanConverter.toMap(prjBean);
	}
	
	/* ------------------------------- for dwr end ---------------------------------- */

}
